package main

import (
	"log"
	"reflect"
)

func main() {
	var s interface{} = "abcd"
	reflectType := reflect.TypeOf(s)
	reflectValue := reflect.ValueOf(s)

	log.Printf("[type:%v]", reflectType)
	log.Printf("[value:%v]", reflectValue)
	/*
		2021/08/03 17:19:16 [type:string]
		2021/08/03 17:19:16 [value:abcd]
	*/
}
